<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>:first-child - 匹配了第一个p元素中的所有I元素</title>
    <style>
        p:first-child i {
            color: blue;
        }
    </style>
</head>

<body>
    <p>I am a <i>strong</i> man. I am a <i>strong</i> man.</p>
    <p>I am a <i>strong</i> man. I am a <i>strong</i> man.</p>
    <p><b>注意:</b> 当:first-child 作用于 IE8 及更早版本的浏览器, DOCTYPE 必须已经定义.</p>
</body>

</html>